package cn.rkylin.oms.system.storage.service;

import cn.rkylin.core.service.ApolloService;
import cn.rkylin.oms.system.storage.dao.IStorDAO;
import cn.rkylin.oms.system.storage.domain.Stor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仓库服务实现类
 * @author liming
 */
@Service("storageService")
public class StorServiceImpl extends ApolloService implements IStorService {
	
	/**
	 * 仓库数据访问对象
	 */
	@Autowired
	private IStorDAO istorDAO;

	@Override
	public List<Stor> findByProjectId(String prjId) throws Exception {
		return istorDAO.getStorListByPrjId(prjId);
	}
}
